package inventory.service;


import inventory.common.ResultData;
import inventory.entity.MaterialCategory;
import inventory.entity.MaterialTypical;

import java.util.List;

public interface TypeService {

    /**
     * 添加材料类别
     * @param materialCategory 材料类别 对象
     * auth by DFZH
     */
    void addMaterialCategory(MaterialCategory materialCategory);

    /**
     * 根据类别ID删除类别
     * @param categoryId 类别ID
     * auth by DFZH
     */
    void deleteMaterialCategoryById(String categoryId);

    /**
     * 根据类别ID修改类别
     * @param materialCategory 材料类别 对象
     * auth by DFZH
     */
    void modifyMaterialCategoryById(MaterialCategory materialCategory);

    /**
     * 根据类别ID查询类别信息
     * @param categoryId 类别ID
     * @return MaterialCategory 对象
     * auth by DFZH
     */
    MaterialCategory selectMaterialCategory(String categoryId);

    /**
     * 查询城市
     * @return List 对象
     * auth by DFZH
     */
    List queryCity();

    /**
     * 查询县
     * @return List 对象
     * auth by DFZH
     */
    List queryCounty();

    /**
     * 添加材料类型
     * @param materialTypical 材料类型 对象
     * auth by DFZH
     */
    void addMaterialType(MaterialTypical materialTypical);

    /**
     * 根据id删除材料类型
     * @param typicalId 类型id
     * auth by DFZH
     */
    void deleteMaterialTypeById(String typicalId);

    /**
     * 根据id修改材料类型信息
     * @param materialTypical 材料类型对象
     * auth by DFZH
     */
    void modifyMaterialTypeById(MaterialTypical materialTypical);

    /**
     * 根据id查找材料类型信息
     * @param typicalId 材料类型id
     * @return materialTypical 材料类型对象
     * auth by DFZH
     */
    MaterialTypical selectMaterialType(String typicalId);
}
